package com.iaiai.cobra.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.iaiai.cobra.repository.bean.UserPost;
import com.iaiai.cobra.repository.mapper.UserPostMapper;
import com.iaiai.cobra.system.service.UserPostService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with UserPostServiceImpl.
 * Package: com.iaiai.cobra.system.service.impl
 * Author: iaiai
 * Create Time: 2024/7/2 22:54
 * QQ: 176291935
 * Email: 176291935@qq.com
 * Description:
 */
@Service
public class UserPostServiceImpl extends ServiceImpl<UserPostMapper, UserPost> implements UserPostService {

    public List<UserPost> queryUser(Long userId){
        return getBaseMapper().queryUser(userId);
    }

    //删除
    public void delUserPost(Long userId,Long postId){
        getBaseMapper().delUserPost(userId,postId);
    }

}
